package com.china08.yxyapi.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * @author Json
 *
 */
@ApiModel(description = "支付请求模型")
@JsonIgnoreProperties(ignoreUnknown = true)
public class PaymentReqModel {

    @ApiModelProperty(required = true, value = "1 app  2公众号 3 扫码")
    private Integer payFrom;

    @ApiModelProperty(required = true, value = "1 微信  0支付宝")
    private Integer payType;

    @ApiModelProperty(required = true, value = "支付金额,单位分，不能有小数")
    private Integer total;

    @ApiModelProperty(required = false, value = "用户在商户appid下的唯一标识 公众号必须有")
    private String openId;

    @ApiModelProperty(required = true, value = "订单单号")
    private String orderNum;

    @ApiModelProperty(required = false, value = "云校用户Id")
    private String userId;

    // 表 yxy_income_function中
    @ApiModelProperty(required = true, value = "商品id")
    private String productId;

    @ApiModelProperty(required = true, value = "商品描述")
    private String productName;
    /**
     * 用户在商户appid下的唯一标识<br>
     * 如果开发者有在多个公众号，或在公众号、移动应用之间统一用户帐号的需求，<br>
     * 需要前往微信开放平台（open.weixin.qq.com）绑定公众号后，才可利用UnionID机制来满足上述需求
     */
    @ApiModelProperty(required = false, value = "unionId")
    private String unionId;

    @ApiModelProperty(required = false, value = "用户IP")
    private String ip;

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getPayFrom() {
        return payFrom;
    }

    public void setPayFrom(Integer payFrom) {
        this.payFrom = payFrom;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

}
